package com.lida.easyExcel.client;

import com.lida.commonuntils.R;
import com.lida.zwservice.entity.DetailedVo;
import com.lida.zwservice.entity.ExcelDetailedVo;
import com.lida.zwservice.entity.PersonalDetailed;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Component
@FeignClient(name = "service-zw",fallback = DetailedFileDegradeFeignClient.class)
public interface DetailedClient {

    @PostMapping("/zwservice/detailed/writeExcel")
    public List<PersonalDetailed> writeExcel (@RequestBody (required=false)DetailedVo detailedVo);

    //Excel模块调用，分页查询
    @PostMapping("/zwservice/detailed/getExcelList/{page}/{limit}")
    public R getExcelList(@PathVariable long page,@PathVariable long limit,
                          @RequestBody ExcelDetailedVo excelDetailed);

}
